package com.quarkus.resource;

import javax.ws.rs.BadRequestException;
import javax.ws.rs.GET;
import javax.ws.rs.Path;

/**
 * @version v1.0
 * @Description: TODO(一句话描述该类的功能)
 * @Author: TongRui乀
 * @Date: 2021/1/24 2:50 下午
 */
@Path("exception")
public class ExceptionResource {

    @GET
    public String findFromage(String fromage) {
        if(fromage.equals(""))
            // send a 400
            throw new BadRequestException();
        return "Success";
    }

}
